<template>
	<text v-if="stop==1" @click.stop="$emit('tab')" class="iconfont" :class="['icon'+inm,cname]" :style="[{color:ic,fontSize:fs+'rpx'},sname]"></text>
	<text v-else class="iconfont" :class="['icon'+inm,cname]" :style="[sname]"></text>
</template>

<script>
	export default {
		name: 'mg-icon',
		props: {
			stop: {
				type: String,
				default: '1'
			},
			inm: {
				type: String,
				default: ''
			},
			cname: String,
			sname: Object,
			ic: {
				type: String,
				default: ''
			},
			fs: {
				type: [Number, String],
				default: 32
			},
		},
	}
</script>

<style scoped lang="scss">
</style>
